/*!	brief	The Clock class is used to know how many time elapsed from a start point
 *			It could also be used to fire a function when it reach a certain value
 *			The clock are all updated by the Application static class
 */

 Clock	=	function()
{
	/************************************/
	/*			Properties				*/
	/************************************/
	
		this.m_Start;			/*!<	Start time, in ms, of the clock	*/
		this.m_TimeElapsed;		/*!<	Time Elapsed since Clock start	*/
		this.m_Countdown;		/*!< 	If enable, time before the clock end	*/
		
		this.m_Slot		=	new Array();			/*!<	Function executed when the clock run out	*/
		
	/************************************/
	/*			Constructor				*/
	/************************************/
}

Clock.prototype.Start			=	function( Time, countdown)
{
	this.m_Start 		= 	Date.getTime();
	this.m_Countdown	=	countdown;
}

Clock.prototype.AddSlot		=	function(func)
{
	this.m_Slot.push(func);
}

Clock.prototype.TimeElapsed		=	function()
{
	return this.m_Start-Date.getTime();
}

Clock.prototype.Update			=	function()
{
	if( Date.getTime() > 
}

Clock.Clocks	=	new Array();

Clocks.Update	=	function()
{
	for(var i =0; i< Clock.Clocks.length; i++)
	{
		
	}
}